import { Component } from '@angular/core';
import {NgForOf} from "@angular/common";
import {RouterLink, RouterOutlet} from "@angular/router";

@Component({
  selector: 'app-home',
  standalone: true,
  imports: [
    NgForOf,
    RouterLink,
    RouterOutlet
  ],
  templateUrl: './home.component.html',
  styleUrl: './home.component.css'
})
export class HomeComponent {
  heros = [
    {id: 1, name: '嘉靖'},
    {id:2,name: '严嵩'},
    {id:3, name: '胡宗宪'}
  ]

}
